﻿/* 
 *  <copyright file="ParameterDescription.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;



namespace SobrietyEngine.Common
{
    public class ParameterDescription
    {
        public String Description { get; set; }
        public String Name { get; set; }
        public Type Type { get; set; }
        public Object DefaultValue { get; set; }

        public ParameterDescription(String name, String desc, Type t, Object defaultValue)
        {
            Description = desc;
            Name = name;
            Type = t;
            DefaultValue = defaultValue;
        }

        public ParameterDescription()
        {
            //creates an empty parameter description
            Name = "None";
            Description = "None";
            Type = typeof(Object);
            DefaultValue = null;
        }

        public ParameterDescription(String name, String desc, Type t, float defaultValue):
            this(name,desc,t,(Object)defaultValue)
        {
        }

        public ParameterDescription(String name, String desc, Type t, int defaultValue) :
            this(name, desc, t, (Object)defaultValue)
        {
        }

        public ParameterDescription(String name, String desc, Type t, String defaultValue) :
            this(name, desc, t, (Object)defaultValue)
        {
        }

        public ParameterDescription(String name, String desc, Type t, Char defaultValue) :
            this(name, desc, t, (Object)defaultValue)
        {
        }

        public ParameterDescription(String name, String desc, Type t, Boolean defaultValue) :
            this(name, desc, t, (Object)defaultValue)
        {
        }
    }
}
